<?php 
	/**
	* 
	*/
	class Person 
	{
		public function __construct($name="Tom",$age=19)
		{
			$this->name=$name;
			$this->age=$age;
			echo "<br/>name:".$this->name."and age :".$this->age;
		}
		public function __destruct()
		{
			echo "<br/>Bye Bye ".$this->name;
		}
		
		public $name;
		public $age;

		public function say()
		{
			echo "<br/>".$this->name." is speaking .";
		}
		public function run()
		{
			echo "<br/>".$this->name." is running";
		}
	}

	$p1 = new Person();
	$p1->name="zhang san";
	$p1->age=20;

	$p1->say();
	$p1->run();

	$p2 = new Person();
	$p2->say();
	$p2->run();

	$p3 = new Person("Mary",20);
	$p3->say();
	$p3->run();
 ?>